import { createApp } from "vue";
import App from "./App.vue";
import { registerMicroApps, start } from "qiankun";
import router from "./router";

const app = createApp(App);
app.use(router).mount("#app");
registerMicroApps([
  {
    name: "app-hash",
    entry: "http://localhost:3011",
    container: "#appContainer",
    activeRule: "/app-hash",
    // props: { data: { store, router } },
  },
  {
    name: "app-history",
    entry: "http://localhost:3022",
    container: "#appContainer",
    activeRule: "/app-history",
    // props: { data: store },
  },
  {
    name: "app-webpack",
    entry: "http://localhost:3033",
    container: "#appContainer",
    activeRule: "/app-webpack",
  },
]);

start();
